package cn.edu.zufe.mjt.insight;


/**
 * @author 蒙锦涛
 * @date 2025/5/19
 * @description 自定义拒绝策略，抛出异常
 */


public class ThrowRejectHandle implements RejectHandle {
    @Override
    public void reject(Runnable rejectCommand, MyThreadPool threadPool) {
        throw new RuntimeException("阻塞队列满了");
    }
}
